
#ifndef CPUMEMINFOWIN_H
#define CPUMEMINFOWIN_H

#include "cpuMemInfo.h"
#include <QVector>

typedef struct _FILETIME FILETIME;

class cpuMemInfoWin : public cpuMemInfo
{
public:
    cpuMemInfoWin();
    void init() override;
    //windows下的实现
    double cpuLoadAverage() override;

    // memory
    double usedMemory() override;
    double totalMemory() override;

private:
    //获取并记录CPU的原始数据
    QVector<double> cpuRawData();
    //转换时间格式
    double convertFileTime(const FILETIME& filetime) const;
private:
    QVector<double> mCpuLoadLastValues;
};

#endif // CPUMEMINFOWIN_H
